﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="NodeStateChangedEventArgs.cs" company="dimamartovoi">
//   Apache License
//   Version 2.0, January 2004
//   http://www.apache.org/licenses
// </copyright>
// <summary>
//   The node state changed event args.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

using System;

namespace ActorModel.Engine.Core
{
    /// <summary>
    /// The node state changed event args.
    /// </summary>
    /// <typeparam name="TState">
    /// </typeparam>
    public class NodeStateChangedEventArgs<TState> : EventArgs
    {
        #region Constructors and Destructors

        /// <summary>
        /// Initializes a new instance of the <see cref="NodeStateChangedEventArgs{TState}"/> class.
        /// </summary>
        /// <param name="node">
        /// The node.
        /// </param>
        /// <param name="state">
        /// The state.
        /// </param>
        public NodeStateChangedEventArgs(Node<TState> node, TState state)
        {
            this.State = state;
            this.Node = node;
        }

        #endregion

        #region Public Properties

        /// <summary>
        ///     Gets the node.
        /// </summary>
        public Node<TState> Node { get; private set; }

        /// <summary>
        ///     Gets the state.
        /// </summary>
        public TState State { get; private set; }

        #endregion
    }
}